package com.baturu.vin.benz.dal.dao;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.Set;

/**
 * @author jiangxinlei
 * @Time 2017/2/22.
 */
public interface BenzVinBtrDAO {

    @Select({"select distinct vin from benz_vin_btr"})
    Set<String> findAllVin();

    @Insert({"<script> insert into benz_noself_vin values ",
            "<foreach item='vin' index='index' collection='vins' open='' separator=',' close='' >",
                "(#{vin})",
            "</foreach>",
            "</script>"})
    int addNoSelfAnalyseVin(@Param("vins") Set<String> vins);
}
